<?php

class Admin_user extends CI_Model{

    function __construct(){
        parent::__construct();
    }
    
    function get_user(){
       $username = $this->input->post("username"); 
       $password = $this->input->post("password");
       $sql = "SELECT 1 FROM admin_user WHERE name=? and password=? limit 1";
       $data = $this->db->query($sql, array($username, $password));
       return $data->num_rows;
    }
}
